]> dgit.raspbian.org Git - gnome-shell.git/commit
altTab: Remove get_preferred_width override of AppIcon
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 20 Jun 2019 21:10:26 +0000 (23:10 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Mon, 1 Jul 2019 18:46:26 +0000 (20:46 +0200)
commit074129682bc134f4ca0005a8d9edef210e30da69
tree5f0955ea5bce20f9deb5c23d4df0ec475ae3fffb
parentc67460a1e3b9103cbcd1adf175c03f2cbc37b4a2
altTab: Remove get_preferred_width override of AppIcon

This vfunc override has been introduced to ensure app icons are always
squared, but since the container of the AppIcon gets a square allocation
anyway if the 'square' property of the SwitcherButton is set, there's
no need to return a special width here.

Without the override we can also stop setting the size of the iconBin
manually. And since shell_app_create_icon_texture() uses logical pixels
but clutter_actor_set_size() uses screen pixels, that means we now no
longer set the size of the icon back to the unscaled value after it was
already correct.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1325
js/ui/altTab.js